﻿using System;
using System.IO;

namespace _015_流之使用StreamWriter类将文本写入文件
{
    class Program
    {
        static void Main(string[] args)
        {
            using (StreamWriter 写入操作 = new StreamWriter("zoomlacms.txt"))
            {
                写入操作.WriteLine(300);
                写入操作.WriteLine(0.355M);
                写入操作.WriteLine("我爱逐浪CMS");
                写入操作.WriteLine(false);
                写入操作.WriteLine(DateTime.Today);
            }

            Console.WriteLine("用流写入成功！这是基于UTF-8格式的");

        }
    }
}
